<?php
declare (strict_types = 1);
namespace security;

/**
 * https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/core/GrantedAuthority.html
 * 权限抽象
 * - 简单权限可用Role表示
 * - RBAC权限可用具体Permission表示
 */
interface GrantedAuthority {

    /**
     * 获取权限
     */
    public function getAuthority(): string;
}